package cn.x.kindergarten.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.x.kindergarten.dao.ChengjiDao;
import cn.x.kindergarten.domain.Chengji;
import cn.x.kindergarten.service.ChengjiService;

@Service("chengjiService")
public class ChengjiServiceImpl implements ChengjiService {
	
	@Resource(name="chengjiDao")
	public ChengjiDao chengjiDao;

	@Override
	public Chengji query(Serializable id) {
		return this.chengjiDao.query(id);
	}

	@Override
	public void insert(Chengji chengji) {
		this.chengjiDao.insert(chengji);
	}

	@Override
	public void delete(Serializable id) {
		this.chengjiDao.delete(id);
	}

	@Override
	public void update(Chengji chengji) {
		this.chengjiDao.update(chengji);
	}

	@Override
	public List<Chengji> queryAll() {
		return this.chengjiDao.queryAll();
	}

}
